package com.tao.spell.group.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tao.spell.common.utils.PageUtils;
import com.tao.spell.common.utils.Query;

import com.tao.spell.group.dao.PintuanDao;
import com.tao.spell.group.entity.PintuanEntity;
import com.tao.spell.group.service.PintuanService;


@Service("pintuanService")
public class PintuanServiceImpl extends ServiceImpl<PintuanDao, PintuanEntity> implements PintuanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PintuanEntity> page = this.page(
                new Query<PintuanEntity>().getPage(params),
                new QueryWrapper<PintuanEntity>()
        );

        return new PageUtils(page);
    }

}